package com.turing.post.salesmanage.util;

// default package

import java.math.BigInteger;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 充值单付款信息
 * 
 * @author zxppanda
 * 
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "DEPOSITORDERPAIDDETAIL")
public class DepositOrderPaidDetail implements java.io.Serializable {

	/**
	 * 0 – 现金
	 */
	public static final String DEPOSITOPD_PAIDTYPE_CASH = "0";
	/**
	 * 1 – 支票
	 */
	public static final String DEPOSITOPD_PAIDTYPE_CHECK = "1";
	/**
	 * 2 – 银行转账
	 */
	public static final String DEPOSITOPD_PAIDTYPE_TRANSFER = "2";
	private BigInteger depositOrderPaidId;// 充值单付款ID
	private Date tranDate;
	private Date tranTime;// 付款时间 date Not Null 销售机构收到该付款/付款取消事务的录入时间
	private BigInteger depositOrderId;// 充值单ID 参考DepositOrder
	private String paidType;// 付款方式 char(1)
	/**
	 * 0 销售款
	 */
	public static final String PAIDDETAIL_paidClass_sale = "0";
	/**
	 * 1 手续费
	 */
	public static final String PAIDDETAIL_paidClass_fee = "1";
	private String paidClass;
	private BigInteger paidAmount;// 付款金额 decimal(16) 可正可负
	private BigInteger bankAccDetailId;// 银行转账id
	private BigInteger payeeAccountId;// 收款人ID int Null
	private BigInteger paidAccountId;// 付款人ID int Null
	private String voucherNo;// 凭证号 varchar(60) Null
	private String voucherRemark;// 凭证摘要 varchar(60) Null
	private BigInteger voucherImageId;// 凭证图片ID
	private BigInteger operId;// 操作员ID
	private BigInteger cancelDepositOrderPaidId;// 取消充值单付款ID int Null
	private String remark;// 备注 varchar(60) Null
	/**
	 * 按钮操作
	 */
	private String cancelBtn;

	public DepositOrderPaidDetail() {

	}

	@Id
	@Column(name = "DEPOSITORDERPAIDID")
	public BigInteger getDepositOrderPaidId() {
		return depositOrderPaidId;
	}

	public void setDepositOrderPaidId(BigInteger depositOrderPaidId) {
		this.depositOrderPaidId = depositOrderPaidId;
	}

	@Column(name = "tranDate")
	public Date getTranDate() {
		return tranDate;
	}

	public void setTranDate(Date tranDate) {
		this.tranDate = tranDate;
	}

	@Column(name = "TRANTIME")
	public Date getTranTime() {
		return tranTime;
	}

	public void setTranTime(Date tranTime) {
		this.tranTime = tranTime;
	}

	@Column(name = "DEPOSITORDERID")
	public BigInteger getDepositOrderId() {
		return depositOrderId;
	}

	public void setDepositOrderId(BigInteger depositOrderId) {
		this.depositOrderId = depositOrderId;
	}

	@Column(name = "PAIDTYPE")
	public String getPaidType() {
		return paidType;
	}

	public void setPaidType(String paidType) {
		this.paidType = paidType;
	}

	@Column(name = "paidClass")
	public String getPaidClass() {
		return paidClass;
	}

	public void setPaidClass(String paidClass) {
		this.paidClass = paidClass;
	}

	@Column(name = "PAIDAMOUNT")
	public BigInteger getPaidAmount() {
		return paidAmount;
	}

	public void setPaidAmount(BigInteger paidAmount) {
		this.paidAmount = paidAmount;
	}

	@Column(name = "BankAccDetailId")
	public BigInteger getBankAccDetailId() {
		return bankAccDetailId;
	}

	public void setBankAccDetailId(BigInteger bankAccDetailId) {
		this.bankAccDetailId = bankAccDetailId;
	}

	@Column(name = "PAYEEACCOUNTID")
	public BigInteger getPayeeAccountId() {
		return payeeAccountId;
	}

	public void setPayeeAccountId(BigInteger payeeAccountId) {
		this.payeeAccountId = payeeAccountId;
	}

	@Column(name = "PAIDACCOUNTID")
	public BigInteger getPaidAccountId() {
		return paidAccountId;
	}

	public void setPaidAccountId(BigInteger paidAccountId) {
		this.paidAccountId = paidAccountId;
	}

	@Column(name = "VOUCHERNO")
	public String getVoucherNo() {
		return voucherNo;
	}

	public void setVoucherNo(String voucherNo) {
		this.voucherNo = voucherNo;
	}

	@Column(name = "VOUCHERREMARK")
	public String getVoucherRemark() {
		return voucherRemark;
	}

	public void setVoucherRemark(String voucherRemark) {
		this.voucherRemark = voucherRemark;
	}

	@Column(name = "VOUCHERIMAGEID")
	public BigInteger getVoucherImageId() {
		return voucherImageId;
	}

	public void setVoucherImageId(BigInteger voucherImageId) {
		this.voucherImageId = voucherImageId;
	}

	@Column(name = "OPERID")
	public BigInteger getOperId() {
		return operId;
	}

	public void setOperId(BigInteger operId) {
		this.operId = operId;
	}

	@Column(name = "CANCELDEPOSITORDERPAIDID")
	public BigInteger getCancelDepositOrderPaidId() {
		return cancelDepositOrderPaidId;
	}

	public void setCancelDepositOrderPaidId(BigInteger cancelDepositOrderPaidId) {
		this.cancelDepositOrderPaidId = cancelDepositOrderPaidId;
	}

	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	/**
	 * 查询列表按钮返回状态
	 * 
	 * @return
	 */
	@Transient
	public String getCancelBtn() {
		return cancelBtn;
	}

	public void setCancelBtn(String cancelBtn) {
		this.cancelBtn = cancelBtn;
	}
}